//
//  RCollectionViewCell.m
//  EPAa
//
//  Created by lanou3g on 16/4/19.
//  Copyright © 2016年 李日青. All rights reserved.
//

#import "RCollectionViewCell.h"
#import "UIImageView+WebCache.h"
@interface RCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;

@end
@implementation RCollectionViewCell


- (void)setModel:(RHomeModel *)model {
    if (_model != model) {
        _model = model;
    }
}
- (void)layoutSubviews {
    self.titleLable.text = self.model.name;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
}



- (void)awakeFromNib {
    // Initialization code
}

@end
